export default {
    'GET /api/invest/type': (_req: any, res: any) => {
        res.json({
            success: true,
            data: [
                {
                    title: '全部',
                    id: 1,
                    key: 'all'
                },
                {
                    title: 'BTC',
                    id: 2,
                    key: 'btc'
                },
                {
                    title: 'ETH',
                    id: 3,
                    key: 'eth'
                },
                {
                    title: 'HUSD',
                    id: 4,
                    key: 'husd'
                },
                {
                    title: 'BUSD',
                    id: 5,
                    key: 'busd'
                },
            ],
            errorCode: 0,
        });
    },
    'GET /api/invest/product': (_req, res: any) => {
        if (_req.query.type === 'all') {
            res.json({
                success: true,
                data: [
                    {
                        productName: '产品名称1',
                        id: 1,
                        rate: 1.2,
                        period: 2,
                        min: 10
                    },
                    {
                        productName: '产品名称2',
                        id: 2,
                        rate: 1.2,
                        period: 2,
                        min: 10
                    },
                    {
                        productName: '产品名称3',
                        id: 3,
                        rate: 1.2,
                        period: 2,
                        min: 10
                    },
                    {
                        productName: '产品名称4',
                        id: 4,
                        rate: 1.2,
                        period: 2,
                        min: 10
                    },

                ],
                errorCode: 0,
            });
        } else {
            res.json({
                success: true,
                data: [
                    {
                        productName: '产品名称1',
                        id: 1,
                        rate: 1.2,
                        period: 2,
                        min: 10
                    },
                    {
                        productName: '产品名称2',
                        id: 2,
                        rate: 1.2,
                        period: 2,
                        min: 10
                    },
                ],
                errorCode: 0,
            });
        }

    },
};
